<?php

namespace frontend\models;

use Yii;
use yii\captcha\Captcha;
/**
 * This is the model class for table "{{%user}}".
 *
 * @property integer $user_id
 * @property string $user_name
 * @property string $user_pwd
 * @property integer $role
 */
class User extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public $verifyCode;
    public $role;
    public $user_name;
    public static function tableName()
    {
        return '{{%user}}';
    }
    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            // [['role'], 'integer'],
            ['verifyCode', 'required'],
            ['verifyCode', 'captcha'],
            // [['user_name', 'user_pwd'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    // public function attributeLabels()
    // {
    //     return [
    //         'user_id' => 'User ID',
    //         'user_name' => 'User Name',
    //         'user_pwd' => 'User Pwd',
    //         'role' => 'Role',
    //     ];
    // }
}
